<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form action="homework.php" method="post">
		<label for="content">作业内容:</label><br>
		<textarea id="content" name="content"></textarea><br>
		<label for="deadline">截止日期:</label><br>
		<input type="date" id="deadline" name="deadline"><br><br>
  		<input type="submit" value="提交">
  		<input type="reset" value="重置">
  	</form> 
  	<div id="homeworks">
  		<h2>已发布的作业:</h2>
  		<ul>
  			<li>作业1 - 截止日期: 2023-05-20 <button onclick="modifyDeadline()">修改截止日期</button></li>
  			<li>作业2 - 截止日期: 2023-05-25 <button onclick="modifyDeadline()">修改截止日期</button></li>
  			<li>作业3 - 截止日期: 2023-06-01 <button onclick="modifyDeadline()">修改截止日期</button></li>
  		</ul>
  	</div>

  	<script type="text/javascript">
  		function modifyDeadline() {
  			var newDeadline = prompt("请输入新的截止日期(格式：YYYY-MM-DD):");
  			if (newDeadline != null) {
  				alert("截止日期已修改为：" + newDeadline);
  			}
  		}
  	</script>
</body>
</html>